package com.mayisoftware.mayioa.business.personal.api.service;


import com.mayisoftware.mayioa.business.personal.api.domain.PersonalSign;

import java.util.List;

/**
 * 报名信息管理服务
 */
public interface IPersonalSignService {

    /**
     * 根据用户ID查询个人参加计划信息
     */
    List<PersonalSign> querySignListByUserId(Integer userId);

    /**
     * 添加报名信息
     */
    int addSignInfo(PersonalSign sign);

    /**
     *校验计划是否配置
     */
    boolean isPlanJoined(Integer planId);

    /**
     * 查询申请信息
     */
    List<PersonalSign> queryApplyInfo(PersonalSign personalSign);

    int updateUser(PersonalSign sign);
}
